package com.cookie.libgdx.airforcecolonel;

import java.util.ArrayList;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.TextureRegion;

public class AssetsUtil {
	private final Texture smallPlane;
	private final Texture bigPlane;
	public final Texture background;
	private final Texture backgroundSprit;
	public final TextureRegion summerFarBackground;
	public final TextureRegion summerNearBackground;
	public final TextureRegion winterFarBackground;
	public final TextureRegion winterNearBackground;
	public final ArrayList<TextureRegion> redPlane;
	public final ArrayList<TextureRegion> blackPlane;
	public final ArrayList<TextureRegion> greenPlane;
	public final ArrayList<TextureRegion> bluePlane;
	public final ArrayList<TextureRegion> distoryRedPlane;
	public final ArrayList<TextureRegion> distoryBlackPlane;
	public final ArrayList<TextureRegion> distoryGreenPlane;
	public final ArrayList<TextureRegion> distoryBluePlane;
	public final ArrayList<TextureRegion> bigGrayPlane;
	public final ArrayList<TextureRegion> bigBrownPlane;
	public AssetsUtil() {
		super();
		this.smallPlane = new Texture(Gdx.files.internal("data/Plane.png"));
		this.bigPlane = new Texture(Gdx.files.internal("data/BigPlane.png"));
		this.background = new Texture(Gdx.files.internal("data/Background.png"));
		this.backgroundSprit = new Texture(Gdx.files.internal("data/BackgroundSprite.png"));
		this.summerFarBackground = new TextureRegion(backgroundSprit, 0, 0, 800, 132);
		this.summerNearBackground = new TextureRegion(backgroundSprit,0,264,800,225);
		this.winterFarBackground = new TextureRegion(backgroundSprit,0,132,800,132);
		this.winterNearBackground =new TextureRegion(backgroundSprit, 0, 489, 800, 153);
		this.redPlane = new ArrayList<TextureRegion>(25);
		for(int i=0 ;i<5;i++){
			for(int j=0;j<5;j++ ){
				this.redPlane.add(new TextureRegion(smallPlane, j*44, i*44, 44, 44));
			}
		}
		
		this.blackPlane = new ArrayList<TextureRegion>(25);
		for(int i=5;i<10;i++){
			for(int j=0;j<5;j++ ){
				this.blackPlane.add(new TextureRegion(smallPlane, j*44, i*44, 44, 44));
			}
		}
		
		this.greenPlane = new ArrayList<TextureRegion>(25);
		for(int i=10;i<15;i++){
			for(int j=0;j<5;j++ ){
				this.greenPlane.add(new TextureRegion(smallPlane, j*44, i*44, 44, 44));
			}
		}
		
		this.bluePlane = new ArrayList<TextureRegion>(25);
		for(int i=15;i<20;i++){
			for(int j=0;j<5;j++ ){
				this.bluePlane.add(new TextureRegion(smallPlane, j*44, i*44, 44, 44));
			}
		}
		
		this.distoryRedPlane = new ArrayList<TextureRegion>(2);
		this.distoryRedPlane.add(new TextureRegion(smallPlane, 0, 20*44, 44, 44));
		this.distoryRedPlane.add(new TextureRegion(smallPlane,44,20*44,44,44));
		
		this.distoryBlackPlane = new ArrayList<TextureRegion>(2);
		this.distoryBlackPlane.add(new TextureRegion(smallPlane,88,20*44,44,44));
		this.distoryBlackPlane.add(new TextureRegion(smallPlane,132,20*44,44,44));
		
		this.distoryBluePlane = new ArrayList<TextureRegion>(2);
		this.distoryBluePlane.add(new TextureRegion(smallPlane,0,21*44,44,44));
		this.distoryBluePlane.add(new TextureRegion(smallPlane,44,21*44,44,44));
		
		this.distoryGreenPlane = new ArrayList<TextureRegion>(2);
		this.distoryGreenPlane.add(new TextureRegion(smallPlane,88,21*44,44,44));
		this.distoryGreenPlane.add(new TextureRegion(smallPlane,132,21*44,44,44));
		
		this.bigGrayPlane = new ArrayList<TextureRegion>(9);
		this.bigBrownPlane = new ArrayList<TextureRegion>(9);
		
	}
	
}
